package com.imay.live.proto.room;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by jeaman on 2017/9/20.
 */

public class GiftRankInfo implements Parcelable {
    public int giftId;		//	礼物id
    public int count;		//	数量
    public int value;		//	价值

    public GiftRankInfo() {
        super();
    }

    protected GiftRankInfo(Parcel in) {
        giftId = in.readInt();
        count = in.readInt();
        value = in.readInt();
    }

    public static final Creator<GiftRankInfo> CREATOR = new Creator<GiftRankInfo>() {
        @Override
        public GiftRankInfo createFromParcel(Parcel in) {
            return new GiftRankInfo(in);
        }

        @Override
        public GiftRankInfo[] newArray(int size) {
            return new GiftRankInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(giftId);
        dest.writeInt(count);
        dest.writeInt(value);
    }
}
